package com.cleaningcloud.erp.domain;

import com.cleaningcloud.common.core.annotation.Excel;
import com.cleaningcloud.common.core.web.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品类型管理对象 erp_commodity_type
 *
 * @author cleaningcloud
 * @date 2024-09-26
 */
public class ErpCommodityType extends TreeEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 商品类型ID
     */
    @Excel(name = "商品类型主键")
    private Long commodityTypeId;

    /**
     * 商品类型名称
     */
    @Excel(name = "商品类型名称")
    private String commodityTypeName;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long commodityTypeDesc;

    /**
     * 上级商品ID
     */
    @Excel(name = "上级商品ID")
    private Long commodityTypePid;

    /**
     * 层级
     */
    @Excel(name = "层级")
    private Long commodityLeve;

    /**
     * 创建人ID
     */
    @Excel(name = "创建人ID")
    private Long createId;

    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    private String createName;

    /**
     * 备用是否关闭
     */
    @Excel(name = "备用是否关闭")
    private String flag;

    /**
     * 商品类型编码
     */
    @Excel(name = "商品类型编码")
    private String commodityTypeNo;

    /**
     * 商品图片
     */
    private String commodityTypeImg;

    public Long getCommodityTypeId() {
        return commodityTypeId;
    }

    public void setCommodityTypeId(Long commodityTypeId) {
        this.commodityTypeId = commodityTypeId;
    }

    public String getCommodityTypeName() {
        return commodityTypeName;
    }

    public void setCommodityTypeName(String commodityTypeName) {
        this.commodityTypeName = commodityTypeName;
    }

    public Long getCommodityTypeDesc() {
        return commodityTypeDesc;
    }

    public void setCommodityTypeDesc(Long commodityTypeDesc) {
        this.commodityTypeDesc = commodityTypeDesc;
    }

    public Long getCommodityTypePid() {
        return commodityTypePid;
    }

    public void setCommodityTypePid(Long commodityTypePid) {
        this.commodityTypePid = commodityTypePid;
    }

    public Long getCommodityLeve() {
        return commodityLeve;
    }

    public void setCommodityLeve(Long commodityLeve) {
        this.commodityLeve = commodityLeve;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getCommodityTypeNo() {
        return commodityTypeNo;
    }

    public void setCommodityTypeNo(String commodityTypeNo) {
        this.commodityTypeNo = commodityTypeNo;
    }

    public void setCommodityTypeImg(String commodityTypeImg) {
        this.commodityTypeImg = commodityTypeImg;
    }

    public String getCommodityTypeImg() {
        return commodityTypeImg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("commodityTypeId", getCommodityTypeId())
                .append("commodityTypeName", getCommodityTypeName())
                .append("commodityTypeDesc", getCommodityTypeDesc())
                .append("commodityTypePid", getCommodityTypePid())
                .append("commodityLeve", getCommodityLeve())
                .append("createId", getCreateId())
                .append("createName", getCreateName())
                .append("createTime", getCreateTime())
                .append("flag", getFlag())
                .append("commodityTypeNo", getCommodityTypeNo())
                .append("commodityTypeImg", getCommodityTypeImg())
                .toString();
    }
}
